package com.ruoyi.compensationManagement.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 薪级薪资设置对象 compensation_salary_setting
 * 
 * @author ruoyi
 * @date 2022-10-05
 */
public class CompensationSalarySetting extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 薪级id */
    private Long payId;

    /** 类型选择(T薪级类型 L薪级等级) */
    private String typeSelect;

    /** 薪级类型 */
    @Excel(name = "薪级类型")
    private String payType;

    /** 薪级等级 */
    @Excel(name = "薪级等级")
    private String payLevel;

    @Excel(name = "排序等级")
    private Integer orderNum;

    /** 薪级工资 */
    @Excel(name = "薪级工资")
    private BigDecimal payWages;

    private List<CompensationSalarySetting> children = new ArrayList<>();


    public void setPayId(Long payId) 
    {
        this.payId = payId;
    }

    public Long getPayId() 
    {
        return payId;
    }
    public void setTypeSelect(String typeSelect) 
    {
        this.typeSelect = typeSelect;
    }

    public String getTypeSelect() 
    {
        return typeSelect;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setPayLevel(String payLevel) 
    {
        this.payLevel = payLevel;
    }

    public String getPayLevel() 
    {
        return payLevel;
    }
    public void setPayWages(BigDecimal payWages) 
    {
        this.payWages = payWages;
    }

    public BigDecimal getPayWages() 
    {
        return payWages;
    }

    @Override
    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public List<CompensationSalarySetting> getChildren() {
        return children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("payId", getPayId())
            .append("typeSelect", getTypeSelect())
            .append("parentId", getParentId())
            .append("payType", getPayType())
            .append("payLevel", getPayLevel())
            .append("payWages", getPayWages())
                .append("remark", getRemark())
                .append("orderNum", getOrderNum())
                .append("children",getChildren())
            .toString();
    }
}
